<%--
  Created by IntelliJ IDEA.
  User: yuan
  Date: 2022/11/21
  Time: 17:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>登录</title>
</head>
<body>

<h3 style="color: red" align="center">单点登录</h3>
<div align="center">
    <c:choose>
        <c:when test="${requestScope.repeat != null}">
            <script>alert("${requestScope.repeat}")</script>
        </c:when>
        <c:otherwise>
            ${requestScope.msg}
        </c:otherwise>
    </c:choose>

    <form action="loginServlet?action=login" method="post">
        用户名: <input type="text" name="username">
        <input type="submit" value="登录">
    </form>
    <a href="count.jsp">查看当前网站在线人数</a>
</div>


</body>
</html>
